package com.enjoyor.soa.traffic.core.tpcms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tpcms.constant.InfoStopRoadSqlId;
import com.enjoyor.soa.traffic.core.tpcms.domain.InfoStopRoad;
import com.enjoyor.soa.traffic.core.tpcms.mapper.IInfoStopRoadMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;

@Service
@Transactional
public class InfoStopRoadMapper extends BaseMapper<InfoStopRoad> implements IInfoStopRoadMapper {

    /*
     * @Override public void insert(InfoStopRoad infoStopRoad) {
     * super.insert(infoStopRoad); }
     */

    @Override
    public List<InfoStopRoad> selectListInfo(Map<String, Object> map) {
        List<InfoStopRoad> selectList = this.sqlSessionTemplate.selectList(InfoStopRoadSqlId.SQL_SELECT_LIST, map);
        return selectList;
    }

    /**
     * 绘制区域位置信息
     */
    @Override
    public void drawingRoadShape(InfoStopRoad infoStopRoad) {
        sqlSessionTemplate.update(getSqlName(InfoStopRoadSqlId.SQL_UPDATE_ROAD_SHAPE), infoStopRoad);
    }

}
